<div class="navbar navbar-default" role="navigation">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">下拉导航</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="" href="index.html"><span class="navbar-brand"><span class="fa fa-paper-plane"></span> 地质监测</span></a></div>

    <div class="navbar-collapse collapse" style="height: 1px;">
        <ul id="main-menu" class="nav navbar-nav navbar-right">
            <li class="dropdown hidden-xs">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <span class="glyphicon glyphicon-user padding-right-small" style="position:relative;top: 3px;"></span> <?= $host['username'] ?>
                    <i class="fa fa-caret-down"></i>
                </a>

                <ul class="dropdown-menu">
                    <li><a href="/admin/user/profile">我的账户</a></li>
                    <li class="divider"></li>
                    <li class="dropdown-header">管理员面板</li>
                    <li><a href="/admin/user">用户管理</a></li>
                    <li><a href="/admin/user/places">监测点管理</a></li>
                    <li class="divider"></li>
                    <li><a tabindex="-1" href="/login/signout">退出</a></li>
                </ul>
            </li>
        </ul>

    </div>
</div>
</div>

<div class="sidebar-nav">
    <ul>
        <li><a href="#" data-target=".dashboard-menu" class="nav-header" data-toggle="collapse"><i class="fa fa-fw fa-dashboard"></i>系统管理<i class="fa fa-collapse"></i></a></li>
        <li>
            <ul class="dashboard-menu nav nav-list collapse in">

                <li><a href="/admin/user/"><span class="fa fa-caret-right"></span>用户管理</a></li>
                <li ><a href="/admin/user/places"><span class="fa fa-caret-right"></span>监测点管理</a></li>
                
            </ul>
        </li>

        <li ><a href="#" data-target=".accounts-menu" class="nav-header " data-toggle="collapse"><i class="fa fa-fw fa-briefcase"></i>个人设置<i class="fa fa-collapse"></i></a></li>
        <li>
            <ul class="accounts-menu nav nav-list collapse in">
                <li ><a href="/admin/user/profile"><span class="fa fa-caret-right"></span>个人资料</a></li>
                <li ><a href="/admin/user/pwd"><span class="fa fa-caret-right"></span>修改密码</a></li>
            </ul>
        </li>
        <li><a href="/login/signout" class="nav-header" target="blank"><i class="fa fa-fw fa-heart"></i>退出</a></li>
    </ul>
</div>
